package com.julian.factoryPattern.simpleFactoryPattern.store;

import com.julian.factoryPattern.simpleFactoryPattern.pizza.NYStyleCheesePizza;
import com.julian.factoryPattern.simpleFactoryPattern.pizza.Pizza;

public class ChicagoPizzaStore extends PizzaStore {
    @Override
    Pizza createPizza(String type) {
        if (type.equals("cheese")){
            return new NYStyleCheesePizza();
        }
//        else if (type.equals("veggise")){
//            return new NYStyleVeggiePizza();
//        }else if (type.equals("clam")){
//            return new NYStyleClamPizza();
//        }else if (type.equals("pepperoni")){
//            return new NYStylePepperoniPizza();
//        }
        else {
            return null;
        }
    }
}
